package com.wzcl.app.service;

import com.wzcl.app.dao.model.Specifications;
import com.wzcl.app.model.dto.SpecificationsDto;

import java.util.List;

public interface SpecificationsService extends BaseService<Specifications,SpecificationsDto> {

    List<Specifications> addAll(List<SpecificationsDto> list);

    List<Specifications> getAllByCommodityId(Integer commodityId);

    Specifications getByCommodityIdAndSpec(Integer commodityId, String spec);

    void deleteByCommodityId(Integer commodityId);
}
